﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace JSC.Portal.Web.App.Modules.Articles
{
    /// <summary>
    /// The displaytype of the articles in the list.
    /// </summary>
    public enum DisplayType
    {
        HeadersOnly,
        HeadersAndSummary,
        FullContent,
    }

    /// <summary>
    /// The property to sort the articles by.
    /// </summary>
    public enum SortBy
    {
        /// <summary>
        /// Sort by ValidFrom.
        /// </summary>
        ValidFrom,
        /// <summary>
        /// Sort by CreatedOn.
        /// </summary>
        CreatedOn,
        /// <summary>
        /// Sort by DateModified.
        /// </summary>
        ModifiedOn,
        /// <summary>
        /// Sort by Title.
        /// </summary>
        Title,
        /// <summary>
        /// Sort by ArticleCategory.
        /// </summary>
        ArticleCategory,
        /// <summary>
        /// Sort by the user who created the article.
        /// </summary>
        CreatedByUser,
        /// <summary>
        /// Sort by the user who modified the article most recently.
        /// </summary>
        ModifiedByUser,
        /// <summary>
        /// Don't sort the articles.
        /// </summary>
        None
    }

    public enum ArticleModuleAction
    {
        /// <summary>
        /// Show the list of articles.
        /// </summary>
        List,
        /// <summary>
        /// Show a single article.
        /// </summary>
        Details,
        /// <summary>
        /// Show all articles for a particular category.
        /// </summary>
        Category,
        /// <summary>
        /// Show all expired articles.
        /// </summary>
        Archive
    }
}
